<template>
  <div class="">
    <comcode ref="mcode" :url="url" :title="title"></comcode>
    <button @click="handleClick">下载</button>
  </div>
</template>

<script setup>
import comcode from './components/code.vue';
import {ref} from 'vue';
let url = ref('http://172.16.3.134:3100/questionnaireManagement/questManag');
let mcode = ref(null);
let title = ref('常规调查问卷');
const handleClick = ()=>{
  url.value = 'https://www.bilibili.com/'
  mcode.value.down();
}
</script>

<style>

</style>